package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SalaryCycleExample.E_ATTENDANCE_DATA_SOURCE;
import static org.jsola.hr.example.SalaryCycleExample.E_ATTENDANCE_MODULE_ITEM;
import static org.jsola.hr.example.SalaryCycleExample.E_COMPANY_ID;
import static org.jsola.hr.example.SalaryCycleExample.E_LEAVE_DOWNSIZING;
import static org.jsola.hr.example.SalaryCycleExample.E_PAY_DATE;
import static org.jsola.hr.example.SalaryCycleExample.E_PAY_MONTH;
import static org.jsola.hr.example.SalaryCycleExample.E_SOC_DATA_SOURCE;
import static org.jsola.hr.example.SalaryCycleExample.E_SOC_MONTH;
import static org.jsola.hr.example.SalaryCycleExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SalaryCycleExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SalaryCycleExample.N_ATTENDANCE_DATA_SOURCE;
import static org.jsola.hr.example.SalaryCycleExample.N_ATTENDANCE_MODULE_ITEM;
import static org.jsola.hr.example.SalaryCycleExample.N_COMPANY_ID;
import static org.jsola.hr.example.SalaryCycleExample.N_LEAVE_DOWNSIZING;
import static org.jsola.hr.example.SalaryCycleExample.N_PAY_DATE;
import static org.jsola.hr.example.SalaryCycleExample.N_PAY_MONTH;
import static org.jsola.hr.example.SalaryCycleExample.N_SOC_DATA_SOURCE;
import static org.jsola.hr.example.SalaryCycleExample.N_SOC_MONTH;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【计薪周期设置】的参数")
@Data
public class SalaryCycleAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_PAY_MONTH, example = E_PAY_MONTH)
    private Integer payMonth;

    @ApiModelProperty(notes = N_PAY_DATE, example = E_PAY_DATE)
    private Integer payDate;

    @ApiModelProperty(notes = N_SOC_MONTH, example = E_SOC_MONTH)
    private Integer socMonth;

    @ApiModelProperty(notes = N_SOC_DATA_SOURCE, example = E_SOC_DATA_SOURCE)
    private Integer socDataSource;

    @ApiModelProperty(notes = N_ATTENDANCE_DATA_SOURCE, example = E_ATTENDANCE_DATA_SOURCE)
    private Integer attendanceDataSource;

    @ApiModelProperty(notes = N_ATTENDANCE_MODULE_ITEM, example = E_ATTENDANCE_MODULE_ITEM)
    private Integer attendanceModuleItem;

    @ApiModelProperty(notes = N_LEAVE_DOWNSIZING, example = E_LEAVE_DOWNSIZING)
    private Integer leaveDownsizing;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

